{% extends "map/index.html" %}
{% load staticfiles %}
{% block window %}
<div class="col-md-12">
	<form data-toggle="validator" role="form" action="/map/addship/" method="post">
	<h3><span class="label label-info">添加船只</span></h3>
	{% csrf_token %}
		<div class="col-md-4"></div>
		<div class="col-md-4 form-group">
			<table class="table ">
				<tr>
					<td><label class="control-label" for="{{ form.ship_id.id_for_label }}">船号：</label></td>
					<td>{{ form.ship_id }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.user_id.id_for_label }}">管理用户：</label></td>
					<td>{{ form.user_id }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.protocol_id.id_for_label }}">协议：</label></td>
					<td>{{ form.protocol_id }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.ship_owner_id.id_for_label }}">船东：</label></td>
					<td>{{ form.ship_owner_id }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.ship_type_id.id_for_label }}">船舶类型：</label></td>
					<td>{{ form.ship_type_id }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.manager_id.id_for_label }}">经营管理人：</label></td>
					<td>{{ form.manager_id }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.name.id_for_label }}">船名：</label></td>
					<td>{{ form.name }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.name_chinese.id_for_label }}">中文名：</label></td>
					<td>{{ form.name_chinese }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.mmsi.id_for_label }}">MMSI：</label></td>
					<td>{{ form.mmsi }}</td>
				</tr>
				<tr>
					<td><label class="control-label" for="{{ form.build_time.id_for_label }}">船舶录入时间：</label></td>
					<td>{{ form.build_time }}<span class='label label-success'>格式（2016-05-14）</span></td>
				</tr>
				<tr>
					<td><input style="float:right;" class="btn btn-primary btn-lg" type="submit" value="Submit" /></td>
					<td><input class="btn btn-danger btn-lg" type="button" value="Cancel" onclick="window.location.href='/map/'" /></td>
				</tr>
			</table>
		</div>
		<div class="col-md-4">
				<div class="alert alert-warning text-center" role="alert">
				<h4>添加船只:</h4>
				用户可以添加属于自己的船只，通过添加船只界面，用户可以添加船只一些必填的简单信息，具体添加船只表单如何填写请联系管理员。
				</div>
		</div>
	</form>
</div>
{% endblock %}
{% block modal_js %}
{% endblock %}